{"version":3,"file":"grid.map.js","names":["BX","namespace","Kanban","Grid","options","type","isPlainObject","Error","this","isDomNode","renderTo","rendered","layout","outerContainer","innerContainer","gridContainer","earLeft","earRight","emptyStub","loader","leftShadow","rightShadow","emptyStubItems","itemType","getItemType","columnType","getColumnType","messages","Object","create","columns","columnsOrder","items","data","bgColor","Utils","isValidColor","earTimer","firstRenderComplete","dragMode","DragMode","NONE","multiSelect","ahaMode","selectedItems","addItemTitleText","addDraftItemInfo","columnsRevert","canAddColumn","canEditColumn","canSortColumn","canRemoveColumn","canAddItem","canSortItem","dropZoneArea","DropZoneArea","dropZoneType","dropZoneTimeout","setData","loadData","events","eventName","hasOwnProperty","addCustomEvent","bindEvents","delegate","onItemDragStart","onItemDragStop","onColumnDragStart","onColumnDragStop","addSelectedItem","bind","adjustMultiSelectMode","removeSelectedItem","window","addEventListener","event","getKeyDownName","keyCode","getSelectedItems","length","cleanSelectedItems","PreventDefault","findParent","target","attr","getAttribute","ITEM","COLUMN","prototype","addColumn","getColumn","id","column","Column","setGrid","getId","targetColumn","targetId","targetIndex","util","array_search","splice","push","isRendered","getGridContainer","insertBefore","render","getContainer","appendChild","getAddItemTitleText","getAddDraftItemInfo","isAhaMode","onAhaMode","classList","add","offAhaMode","remove","removeColumn","removeColumnItems","filter","element","updateColumn","setOptions","getNextColumnSibling","currentColumn","columnIndex","getColumnIndex","getColumns","getPreviousColumnSibling","onMultiSelect","offMultiSelect","item","Item","indexOf","addItem","columnId","targetItem","getItem","onCustomEvent","removeItem","itemId","dispose","getItems","removeItems","forEach","updateItem","isValidId","moveItem","eventArgs","task","hideItem","isVisible","visible","isCountable","decrementTotal","unhideItem","incrementTotal","i","unSelect","isMultiSelect","getColumnsCount","getItemByElement","itemNode","dataset","className","classFn","getClass","isFunction","getDropZoneArea","getData","getBgColor","getBgColorStyle","getOptions","json","needToDraw","setRenderStatus","boolOptions","boolOption","isBoolean","isArray","dropZones","dropzone","getDropZone","updateDropZone","addDropZone","draw","docFragment","document","createDocumentFragment","cleanNode","renderLayout","adjustLayout","adjustEmptyStub","getOuterContainer","parentNode","getInnerContainer","getEmptyStub","getLeftEar","getRightEar","getLoader","adjustHeight","status","attrs","mouseenter","scrollToLeft","mouseleave","stopAutoScroll","scrollToRight","getRenderToContainer","props","style","backgroundColor","children","getLeftShadowContainer","getRightShadowContainer","scroll","adjustEars","text","getMessage","html","adjustWidth","grid","scrollLeft","isLeftVisible","isRightVisible","scrollWidth","Math","round","offsetWidth","width","getBoundingClientRect","top","height","documentElement","clientHeight","contains","minHeight","removeProperty","rectArea","left","moveSelectedItems","beforeItem","addSelectedItems","moveItems","startBeforeItem","currentColumns","columnItems","keyId","getColumnId","removeSelectedItems","addItems","moveColumn","canAddColumns","canEditColumns","canSortColumns","canRemoveColumns","canAddItems","canSortItems","setInterval","clearInterval","jsDD","refreshDestArea","getDragMode","getDragModeCode","mode","code","setDragMode","toLowerCase","resetDragMode","disabledItem","enableDropping","emptyAll","show","unDisabledItem","hide","getEventPromise","onFulfilled","onRejected","promises","concat","promise","Promise","firstPromise","then","fadeOut","fadeIn","messageId","message","DragEvent","action","allowAction","denyAction","isActionAllowed","setItems","setItem","setTargetItem","getTargetItem","setTargetColumn","getTargetColumn"],"sources":["grid.js"],"mappings":"CAAC,WAED,aAEAA,GAAGC,UAAU,aA0BbD,GAAGE,OAAOC,KAAO,SAASC,GAEzB,IAAKJ,GAAGK,KAAKC,cAAcF,GAC3B,CACC,MAAM,IAAIG,MAAM,8CACjB,CAEAC,KAAKJ,QAAUA,EAEf,IAAKJ,GAAGK,KAAKI,UAAUL,EAAQM,UAC/B,CACC,MAAM,IAAIH,MAAM,+CACjB,CAEAC,KAAKE,SAAWN,EAAQM,SACxBF,KAAKG,SAAW,MAEhBH,KAAKI,OAAS,CACbC,eAAgB,KAChBC,eAAgB,KAChBC,cAAe,KACfC,QAAS,KACTC,SAAU,KACVC,UAAW,KACXC,OAAQ,KACRC,WAAY,KACZC,YAAa,MAGdb,KAAKc,eAAiBl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